<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="decorator" content="default" />
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<link rel="stylesheet" href="${ctxStatic}/css/list.css">
<script>
    /*初始方法*/
    $(function() {
        
        $(".tabBox ul li").each(
                function() {
                    var index = $(this).index();
                    $(".tabBox ul li").eq(0).addClass("active");
                    $(this).click(
                            function() {
                                $(this).addClass("active").siblings()
                                        .removeClass("active");
                                $(".tabBoxSm > .tableBox").eq(index).stop(true)
                                        .show().siblings().stop(true).hide();
                            })
                })
         // 下拉选框带搜索功能
         $("#styleCategoryCD,#urgentCD,#fabricId,#sizeGroupCD,#sizeCD,#styleMakeCD,#fitCD").select2(); 

        // 图片
        var orderFabricId = $('#orderFabricId').val();
        changeMaterialImg(orderFabricId);
        // 尺码组
        var sizeGroupCD = $('#oldSizeGroupCD').val();
        // 加载尺码
        changeGroupSize(sizeGroupCD);
        
        var urgentCD = "ORDER_FLAG-normal_10";
        
        $("#urgentCD option").each(function(i,n){
           if($(n).val() == urgentCD) {
               $(n).attr("selected",true);
           }
        });
    })

    /*通过款式获取默认值*/
    function setParamByStyleChoose(items) {
        $('#refFlag').val('s');
        // 款式名称
        $('#styleName').val(items.find("input[name='styleName']").val());
        setParam(items);

    }

    /*参考订单*/
    function refOrderInfo(items) {
    	// 将带入相关数据，确定操作？
        parent.layer.confirm('<img src="static/images/icon_info.png" class="incoInfo"><spring:message code="order_message06"/>', {
            title:false,
            closeBtn:0,
            btn: ['<spring:message code="btn_ok"/>', '<spring:message code="btn_cancle"/>'], //按钮
            area: ['300px', '150px']
        }, function(){
            // 获取当前元素
            // 订单编号
            parent.layer.closeAll()
            $('#orderNO').val(items.find("input[name='orderNO']").val());
            // 订单ID
            $('#refOrderId').val(items.find("input[name='refOrderId']").val());
            // 参考标识
            $('#refFlag').val('r');
            // 设置参考值
            setParam(items);
        }, function(){
        }
        );

    }
    
    /*设置参考值*/
    function setParam(items) {
        // 获取当前元素
        // 款式ID
        $('#styleId').val(items.find("input[name='styleId']").val());
        
        // 款式类型
        var styleCategoryCd = items.find("input[name='styleCategoryCd']").val();
        $("#styleCategoryCD option").each(function(i,n){
            if($(n).val() == styleCategoryCd) {
                $(n).attr("selected",true);
            }
        });
        
        // 面料
        var fabricId = items.find("input[name='fabricId']").val();
        $("#fabricId option").each(function(i,n){
            if($(n).val() == fabricId) {
                // 更换面料图片
                $(n).attr("selected",true);
                changeMaterialImg($(n).val());
            }
        });
        
        // 版型
        var fitCD = items.find("input[name='fitCD']").val();
        $("#fitCD option").each(function(i,n){
            if( $(n).val() == fitCD) {
                $(n).attr("selected",true);
            }
        });
        
        // 制作工艺
        var styleMakeType = items.find("input[name='styleMakeType']").val();
        $("#styleMakeCD option").each(function(i,n){
            if( $(n).val() == styleMakeType) {
                $(n).attr("selected",true);
            }
        });
        
        // 年份
        var styleYear = items.find("input[name='styleYear']").val();
        $('#sytleYear').val(styleYear);
        
        // 季节
        var styleSeason = items.find("input[name='styleSeason']").val();
        $("#styleSeason option").each(function(i,n){
            if( $(n).val() == styleSeason) {
                $(n).attr("selected",true);
            }
        });
        
        // 尺码组
        var sizeGroupCD = items.find("input[name='styleSizeGroupCd']").val();
        // 加载尺码
        changeGroupSize2(sizeGroupCD, items);

        // 下拉选框带搜索功能
        $("#styleCategoryCD,#urgentCD,#fabricId,#sizeGroupCD,#sizeCD,#styleMakeCD,#fitCD").select2(); 
        
        // 更换标题
        changeTitleInfo();
    }
    
    
    /*更换尺码组*/
    function changeGroupSize2(value, items) {

        value = value.split('-')[1];
        $.post("${ctx}/order/createOrder/changeGroupSize?sizeGroupCD=" + value,
                "", function(result) {
                    var h = $(callBackHtml(result)).find("#groupSizeDiv").html();
                    $('#groupSizeDiv').html(h);
                    
                    // 尺码
                    var styleSizeCd = items.find("input[name='styleSizeCd']").val();
               
                    $("#sizeCD option").each(function(i,n){
                        if( $(n).val() == styleSizeCd) {
                            $(n).attr("selected",true);
                        }
                    });
                    $("#sizeCD").select2();
                }, 'html');
        

    }
    
    /*选择裁缝*/
    function chooseTailor(items) {
        // 获取当前元素
        // 裁缝姓名
        $('#tailorName').val(items.find("input[name='firstName']").val());
        // 裁缝ID
        $('#tailorId').val(items.find("input[name='id']").val());
    }
    
    /*选择客户*/
    function chooseCustomer(items) {
        // 获取当前元素
        // 裁缝姓名
        $('#customerName').val(items.find("input[name='customerName']").val());
        // 裁缝ID
        $('#customerId').val(items.find("input[name='customerId']").val());
    }
    
    
    /*更换面料图片*/
    function changeMaterialImg(id) {


        $.post("${ctx}/order/createOrder/searchInfoByMaterialId?id=" + id + "&&updateFlag=1", "",
               function(result) {
                   var h = $(callBackHtml(result)).find("#materialId").html();
                   $('#materialId').html(h);
                   changeTitleInfo();
                   
                   $(".tableImg").hover(function(){
                       var thisImg = $(this).next('.posImg');
                       var thisW = $(this).width();
                       var thisH = $(this).height();
                       thisImg.css({
                           width:thisW*3 + "px",
                           height:thisH*3 + "px"
                       });
                       var thisImgW = thisImg.width();
                       var thisImgH = thisImg.height();
                       var thisImgTop = $(this).offset().top;
                       var thisImgLeft = $(this).offset().left;
                       thisImg.css({
                           top:thisImgTop - (thisImgH - thisH)/2 + "px",
                           left:thisImgLeft - (thisImgW - thisW)/2 + "px",
                       })
                       
                       thisImg.show()
                   });

                   $(".posImg").hover(function(){
//                       移入
                   },function(){
                       $(this).hide()
                   });
               }, 'html'); 
    }
    /*更换尺码组*/
    function changeGroupSize(value) {

        value = value.split('-')[1];
        $.post("${ctx}/order/createOrder/changeGroupSize?sizeGroupCD=" + value,
                "", function(result) {
                    var h = $(callBackHtml(result)).find("#groupSizeDiv")
                            .html();
                    $('#groupSizeDiv').html(h);
                    $("#sizeGroupCD").select2();
                    
                    // 尺码
                    var oldSizeCD = $('#oldSizeCD').val();
                    $("#sizeCD option").each(function(i,n){
                        if($(n).val() == oldSizeCD) {
                            $(n).attr("selected",true);
                        }
                    });
                    $("#sizeCD").select2();
                    changeTitleInfo();
                }, 'html');
        
    }

    // 保存方法
    var saveForm={
            s:null,
            save:function(s){
                    this.s=s;
                    // 检查量体信息
                    if(!checkFitInfo()){
                        // 量体更改FLAG 0：未修改 1：已修改
                        $('#fitUpdateFlag').val(1);
                        parent.layer.confirm('<spring:message code="order_message05"/>', {
                             title:false,
                             closeBtn:0,
                             btn: ['<spring:message code="btn_ok"/>', '<spring:message code="btn_cancle"/>'], //按钮
                             area: ['300px', '150px']
                         }, function(){
                             // 下一步
                             saveUpdate();
                         }, function(){

                         }
                     );

                    } else {
                        // 下一步
                        // 量体更改FLAG 0：未修改 1：已修改
                        $('#fitUpdateFlag').val(0);
                        saveUpdate();
                    }

        }
     }
    
    /*下一步*/
    function saveUpdate() {
        $("#inputForm").validate({
            submitHandler : function() {
                var params = $("#inputForm").serialize();
                $.post("${ctx}/order/createOrder/saveOrderToSession", params, function(result) {
                    
                    // 有错误
                    if (result == "false") {
                        $("#inputForm")[0].reset();
                    }
                     // 跳转至第二页面
                    else {
                        window.location.href="${ctx}/order/createOrder2/initUpdateOrder2";
                    }
                }, 'json');
            }
        });
        
        $("#inputForm").validate({});
        $("#inputForm").submit(); 
    }
    
    /*检查量体信息*/
    function checkFitInfo(){
        // 版型
        var oldFitCD = $('#oldFitCD').val();
        var fitCD = $('#fitCD').val();
        
        if (oldFitCD != fitCD) {
            return false;
        }
        
        // 尺码组
        var oldSizeGroupCD = $('#oldSizeGroupCD').val();
        var sizeGroupCD = $('#sizeGroupCD').val();
        
        if (oldSizeGroupCD != sizeGroupCD) {
            return false;
        }
        
        // 尺码
        var oldSizeCD = $('#oldSizeCD').val();
        var sizeCD = $('#sizeCD').val();
        
        if (oldSizeCD != sizeCD) {
            return false;
        }

        // 款式类型 
        var oldStyleCategoryCD = $('#oldStyleCategoryCD').val();
        var styleCategoryCD = $('#styleCategoryCD').val();

        
        if (oldStyleCategoryCD != styleCategoryCD) {
            return false;
        }
        
        return true;

    }
    
    
    /*标题*/
    function changeTitleInfo() {

        var params = $("#inputForm").serialize();
    
        
        $.post("${ctx}/order/createOrder/titleShow?id=0", params, function(result) {
            
            var h = $(callBackHtml(result)).find("#title").html();
            $('#title').html(h);
        
            var windowH2 = window.parent.windowHIframe
            $('.TxtInfoSm1,.scrollBox').css('height', windowH2 - 368);
            
         }, 'html');

    }
    
</script>
</head>
<body>
    <div class="myshop">
    <!-- 编辑订单 -->
    <p class="myshoptop"><spring:message code="order_edit_order"/></p>
    </div>

    <div class="myshop_middle_order">

        <!-- 标题 -->
        <div class="orderTit orderTitShow clearfix">
            <div class="titSm off">
                <!-- 基本信息 -->
                <p><spring:message code="order_basic_info"/></p>
                <img src="${ctxStatic}/images/order_01_off.png">
            </div>
            <div class="titSm off" onclick='saveUpdate()'>
                <!-- 量体信息 -->
                <p><spring:message code="order_fit_property_info"/></p>
                <img src="${ctxStatic}/images/order_02_on.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form3?id=${order.id}"'>
                <!-- 款式定制 -->
                <p><spring:message code="order_style_customization"/></p>
                <img src="${ctxStatic}/images/order_03_on.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form4?id=${order.id}"'>
                <!-- 辅料 -->
                <p><spring:message code="order_accessory"/></p>
                <img src="${ctxStatic}/images/order_04_on.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form5?id=${order.id}"'>
                <!-- 配料 -->
                <p><spring:message code="order_burdening"/></p>
                <img src="${ctxStatic}/images/order_05_on.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form6?id=${order.id}"'>
                <!-- 刺绣 -->
                <p><spring:message code="order_embroidery"/></p>
                <img src="${ctxStatic}/images/order_06_on.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form7?id=${order.id}"'>
                <!-- 标牌 -->
                <p><spring:message code="order_brand"/></p>
                <img src="${ctxStatic}/images/order_07_on.png">
            </div>
            <div class="titSm off" onclick='window.location.href="${ctx}/order/createOrder3/form8?id=${order.id}"'>
                <!-- 售价 -->
                <p><spring:message code="order_sales_price"/></p>
                <img src="${ctxStatic}/images/order_08_on.png">
            </div>
        </div>


        <!-- 入力form -->
        <form id="inputForm">
            <div class="clearfix">
            <div class="contentBox cnBx">
                <!-- 基本信息 -->
                <p class="contentTit"><spring:message code="order_basic_info"/></p>
                <!-- 参考flag -->
                <input type="hidden" name="refFlag" id="refFlag">
                <input type="hidden" name="orderNO" value="${order.orderNO}"/>
                <div class="formBox scrollBox">
                    <div class="data clearfix">
                        <div class="w-400 fl">
                            <div class="clearfix">
                                <!-- 款式名称 -->
                                <p class="data_id"><spring:message code="order_style_name"/></p>
                                <div class="fl orderInpBtn clearfix">
                                    <input class="form-control" id="styleName" value="${order.styleNameCN}">
                                    <!-- 隐藏变量-后台传值 -->
                                    <!-- id -->
                                    <input id="orderId" name="id" value="${order.id}" type="hidden">
                                    <!-- 量体更改FLAG 0：未修改 1：已修改 -->
                                    <input id="fitUpdateFlag" name="fitUpdateFlag" value="0" type="hidden">
                                    <!-- 版型 -->
                                    <input id="oldFitCD" value="${order.fitCD}" type="hidden">
                                    <!-- 国际尺码 -->
                                    <input id="oldSizeGroupCD" value="${order.sizeGroupCD}" type="hidden">
                                    <!-- 尺码 -->
                                    <input id="oldSizeCD" value="${order.sizeCD}" type="hidden">
                                    <!-- 款式类型 -->
                                    <input id="oldStyleCategoryCD" value="${order.styleCategoryCD}" type="hidden" >
                                    <!-- 图片 -->
                                    <input id="orderFabricId" value="${order.fabricId}" type="hidden" >
                                    <input class="form-control" name="styleId" id="styleId" type="hidden" value="${order.styleId}">
                                    <p class="formBtnSm" onclick="popup('1100px','650px','${ctx}/order/createOrder/myStyleList')"><spring:message code="order_choose"/></p>
                                </div>
                            </div>
                        </div>
                        <div class="w-400 fr">
                            <div class="clearfix">
                                <!-- 店铺名称 -->
                                <p class="data_id"><spring:message code="order_shop_name"/></p>
                                <p class="data_id data_idTxt">${order.shopName}<input type="hidden" name="shopName" value="${order.shopName}"/></p>
                            </div>
                        </div>
                    </div>
                    <div class="data clearfix">
                        <div class="w-400 fl">
                            <div class="clearfix">
                                <div class="w-190 fl haveToBox">
                                    <!-- 款式类型 -->
                                    <p class="data_id"><spring:message code="order_style_type"/></p>
                                    <c:set value="<%=ResourcesUtil.getConfig(\"style_category\")%>" var="categoryList" />
                                    <select class="form-control sex" name="styleCategoryCD" id="styleCategoryCD"
                                        data-rule-required="true" data-msg-required="<spring:message code="order_input_styleCategoryCD"/>">
                                        <option value=""><spring:message code="order_please_choose"/></option>
                                        <c:forEach items="${fns:getDictList(categoryList)}" var="categoryItem">
                                            <option value="${categoryItem.itemCode}-${categoryItem.itemValue}" <c:if test="${fn:split(order.styleCategoryCD, '-')[1] eq categoryItem.itemValue}">selected="selected"</c:if>>${categoryItem.itemName}</option>
                                        </c:forEach>
                                    </select>
                                    <p class="haveTo">*</p>
                                </div>
                                <div class="w-190 fr haveToBox">
                                    <!-- 订单数量 -->
                                    <p class="data_id"><spring:message code="order_order_number"/></p>
                                    <input type="text" onblur="changeTitleInfo()" class="form-control fam" name="orderNumber" id="orderNumber" data-rule-required="true"
                                        data-msg-required="<spring:message code="order_input_orderNumber"/>" maxlength="8" data-rule-min="1"
                                        data-rule-digits="true" value="${order.orderNumber}">
                                    <p class="haveTo">*</p>
                                </div>

                            </div>
                        </div>
                        <div class="w-400 fr">
                            <div class="w-190 fl haveToBox">
                                <c:set value="<%=ResourcesUtil.getConfig(\"order_flag\")%>"
                                    var="orderFlagList" />
                                <!-- 订单标识 -->
                                <p class="data_id"><spring:message code="order_order_identifying"/></p>
                                <select class="form-control sex" name="urgentCD" id="urgentCD"
                                    data-rule-required="true" data-msg-required="<spring:message code="order_choose_urgentCD"/>">
                                    <option value=""><spring:message code="order_please_choose"/></option>
                                    <c:forEach items="${fns:getDictList(orderFlagList)}" var="orderFlagItem">
                                        <option value="${orderFlagItem.itemCode}-${orderFlagItem.itemValue}" <c:if test="${fn:split(order.urgentCD, '-')[1] eq orderFlagItem.itemValue}">selected="selected"</c:if>>${orderFlagItem.itemName}
                                        </option>
                                    </c:forEach>
                                </select>
                                <p class="haveTo">*</p>
                            </div>
                        </div>
                    </div>

                    <div class="data clearfix">
                        <div class="w-400 fl haveToBox">
                            <div class="clearfix">
                                <!-- 面料名称 -->
                                <p class="data_id"><spring:message code="order_fabric_name"/></p>
                                <select class="form-control sex" id="fabricId" name="fabricId" onchange="changeMaterialImg(this.value)" data-rule-required="false" data-msg-required="<spring:message code="order_choose_fabricId"/>">
                                    <!-- zq test 目前没有数据 -->
                                    <!-- <option value="">请选择</option> -->
                                    <option value=""><spring:message code="order_please_choose"/></option>
                                    <c:forEach items="${materialList}" var="materialItem">
                                        <option value="${materialItem.itemValue}" <c:if test="${order.fabricId eq materialItem.itemValue}">selected="selected"</c:if>> ${materialItem.materialNameCN}</option>
                                    </c:forEach>
                                </select>
                                <p class="haveTo">*</p>
                            </div>
                        </div>
                        <div class="w-400 fr haveToBox">
                            <div class="clearfix">
                                <!-- 客户名称 -->
                                <p class="data_id"><spring:message code="order_customer_designation"/></p>
                                <div class="fl orderInpBtn clearfix">
                                    <input class="form-control" name="customerName" id="customerName" value="${order.customerName}">
                                    <input type="hidden" name="customerId" id="customerId" value="${order.customerId}" data-rule-required="true" data-msg-required="<spring:message code="order_choose_customerName"/>">
                                    <p class="formBtnSm" onclick="popup('1100px','650px','${ctx}/order/createOrder/findCustomerList')"><spring:message code="order_choose"/></p>
                                </div>
                                <p class="haveTo">*</p>
                            </div>
                        </div>
                    </div>
                    <!-- 面料图片 -->
                    <div class="data clearfix"  >
                        <div class="w-400 fl" id="materialId" >
                            <p class="data_id">&nbsp;</p>
                            <c:if test="${empty materialItem}">
                                <img src="${ctxStatic}/images/mlpic-none.jpg" class="styleImgSm"  >
                            </c:if>
                            <c:if test="${not empty materialItem}">
                                <img src="${materialItem.filePath}" class="styleImgSm tableImg" >
                                <img src="${materialItem.filePath}" class="styleImgSm posImg" >
                                <div class="imgSmTxt">
                                    <p>${materialItem.materialCode}</p>
                                    <p>${materialItem.materialName}<input type="hidden" name="materialName" value="${materialItem.materialName}"/></p>
                                    <p>
                                        <fmt:formatNumber value="${materialItem.materialCost}" pattern="#,#00.00#" /> ￥
                                    </p>
                                </div>
                            </c:if>
                        </div>
                        <div class="w-400 fr">
                            <div class="data clearfix">
                                <!-- 参考订单 -->
                                <p class="data_id"><spring:message code="order_reference_order"/></p>
                                <div class="fl orderInpBtn clearfix">
                                    <input class="form-control" name="refOrderNo" value="${order.refOrderNo}" id="orderNO">
                                    <input type="hidden" name="refOrderId" id="refOrderId" value="${order.refOrderId}">
                                    <p class="formBtnSm" onclick="popup('1100px','650px','${ctx}/order/order/myRefOrderList')"><spring:message code="order_choose"/></p>
                                </div>
                            </div>
                            <div class="data clearfix haveToBox" id="groupSizeDiv">
                                <!-- 试穿尺码 -->
                                <p class="data_id"><spring:message code="order_size"/></p>
                                <c:set value="<%=ResourcesUtil.getConfig(\"group_size\")%>" var="groupSizeList" />
                                <select name="sizeGroupCD" id="sizeGroupCD" class="form-control form-control-2 sex" style="width:150px;display:block;float:left;"
                                 onchange="changeGroupSize(this.value)" data-rule-required="true" data-msg-required="<spring:message code="order_choose_sizeGroupCD"/>">
                                    <option value=""><spring:message code="order_please_choose"/></option>
                                    <c:forEach items="${fns:getDictList(groupSizeList)}" var="groupSizeItem">
                                        <option value="${groupSizeItem.itemCode}-${groupSizeItem.itemValue}" <c:if test="${fn:split(order.sizeGroupCD, '-')[1] eq groupSizeItem.itemValue}">selected="selected"</c:if>>
                                            ${groupSizeItem.itemName}
                                        </option>
                                    </c:forEach>
                                </select>
                                <c:if test="${empty orderCreate.sizeGroupCD}">
                                    <select class="form-control form-control-2 fr sex"  style="width:150px;display:block;float:right;">
                                        <option value=""><spring:message code="order_please_choose"/></option>
                                    </select>
                                </c:if>
                                <c:if test="${not empty orderCreate.sizeGroupCD}">
                                    <c:set value="${orderCreate.sizeGroupCD}" var="sizeList" />
                                    <select name="sizeCD" id="sizeCD" class="form-control form-control-2 fr sex" style="width:150px;;display:block;float:right;"
                                        data-rule-required="true" data-msg-required="<spring:message code="order_choose_sizeCD"/>" onchange="changeTitleInfo();">
                                        <option value=""><spring:message code="order_please_choose"/></option>
                                        <c:forEach items="${fns:getDictList(sizeList)}" var="sizeItem">
                                            <option value="${sizeItem.itemCode}-${sizeItem.itemValue}" <c:if test="${fn:split(order.sizeCD, '-')[1] eq sizeItem.itemValue}">selected="selected"</c:if>>${sizeItem.itemName}</option>
                                        </c:forEach>
                                    </select>
                                </c:if>
                                <p class="haveTo">*</p>
                            </div>
                            
                            <!-- 季节年份 -->
                            <div class="clearfix haveToBox">
                                <p class="data_id"><spring:message code="style_seasonYear"/></p>
                                <input class="form-control fam"
                                   name="styleYear" id="sytleYear"
                                   value="${order.styleYear}"
                                   style="width: 150px;display: block;float: left;"
                                   maxlength="4" data-rule-digits="true"
                                   data-rule-required="true"
                                   data-msg-digits="<spring:message code="style_pleaseInputInteger"/>"
                                   data-msg-required="<spring:message code="style_pleaseInputYear"/>"
                                   type="text" >
                                 <c:set value="<%=ResourcesUtil.getConfig(\"season\")%>" var="seasonList" />
                                 <select name="styleSeason" class="form-control form-control-2 fr sex" style="width:150px;display:block;float:right;" id="aa" data-rule-required="true" data-msg-required="<spring:message code="style_pleaseSelectSeason"/>"   id="sytleSeason">
                                       <option value=""><spring:message code="style_pleaseSelect"/></option>
                                        <c:forEach items="${fns:getDictList(seasonList)}" var="seasonItem">
                                            <option value="${seasonItem.itemCode}-${seasonItem.itemValue}"  <c:if test="${fn:split(order.styleSeason, '-')[1] eq seasonItem.itemValue}">selected="selected"</c:if>>${seasonItem.itemName}</option>
                                        </c:forEach>
                                 </select>
                                <p class="haveTo">*</p>
                            </div>
                        </div>
                    </div>
                    <div class="data clearfix">
                        <div class="w-400 fl haveToBox">
                            <div class="w-190 fl">
                                <!-- 制作工艺 -->
                                <p class="data_id"><spring:message code="order_workmanship"/></p>
                                <c:set value="<%=ResourcesUtil.getConfig(\"make_type\")%>" var="madeMethodList" />
                                <select name="styleMakeCD" id="styleMakeCD" class="form-control sex" data-rule-required="true" data-msg-required="<spring:message code="order_choose_styleMakeCD"/>" onchange="changeTitleInfo();">
                                    <option value=""><spring:message code="order_please_choose"/></option>
                                    <c:forEach items="${fns:getDictList(madeMethodList)}" var="madeMethodItem">
                                        <option value="${madeMethodItem.itemCode}-${madeMethodItem.itemValue}" <c:if test="${fn:split(order.styleMakeCD, '-')[1] eq madeMethodItem.itemValue}">selected="selected"</c:if>>${madeMethodItem.itemName}</option>
                                    </c:forEach>
                                </select>
                                <p class="haveTo">*</p>
                            </div>
                            <div class="w-190 orderInpBtn fr">
                                <!-- 裁缝 -->
                                <p class="data_id" style="width: 55px;"><spring:message code="order_dressmaker"/></p>
                                <input class="form-control fam " id="tailorName" style="width: calc(100% - 120px);" type="text" value="${order.tailorName}">
                                <p class="formBtnSm" onclick="popup('1100px','650px','${ctx}/order/createOrder/findTailorList')"><spring:message code="order_choose"/></p>
                                <input type="hidden" name="tailorId"  id="tailorId" value="${order.tailorId}"/>
                            </div>
                        </div>
                        <div class="w-400 fr haveToBox">
                            <div class="clearfix">
                                <div class="w-190 fl">
                                    <!-- 版型选择 -->
                                    <p class="data_id"><spring:message code="order_model_choose"/></p>
                                    <c:set value="<%=ResourcesUtil.getConfig(\"fit_body_type\")%>" var="fitBodyTypeList" />
                                    <select name="fitCD" id="fitCD" class="form-control sex" data-rule-required="true" data-msg-required="<spring:message code="order_choose_fitCD"/>" onchange="changeTitleInfo();">
                                        <option value=""><spring:message code="order_please_choose"/></option>
                                        <c:forEach items="${fns:getDictList(fitBodyTypeList)}" var="fitBodyTypeItem">
                                            <option value="${fitBodyTypeItem.itemCode}-${fitBodyTypeItem.itemValue}" <c:if test="${fn:split(order.fitCD, '-')[1] eq fitBodyTypeItem.itemValue}">selected="selected"</c:if>>${fitBodyTypeItem.itemName}
                                            </option>
                                        </c:forEach>
                                    </select>
                                    <p class="haveTo">*</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="data clearfix">
                        <div class="w-400 fl">
                            <div class="clearfix">
                                <!-- 创建者 -->
                                <p class="data_id"><spring:message code="order_createUser"/></p>
                                <p class="data_id">${order.userName}</p>
                            </div>
                        </div>
                        <div class="w-400 fr">
                            <div class="clearfix">
                                <!-- 创建日期 -->
                                <p class="data_id"><spring:message code="order_createDate"/></p>
                                <div class="timeBox">
                                    <p class="data_id"><fmt:formatDate value="${order.createDate}" pattern="yyyy-MM-dd HH:mm"/></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 订单信息显示 -->
        <%@ include file="/WEB-INF/views/modules/order/orderCreateTitle.jsp"%>
            </div>
        </form>
        <div class="Pre-box">
            <!-- 下一步 -->
            <div class="Pre-1" onclick="saveForm.save(0);"><spring:message code="order_next_step"/></div>
            <!-- 取消 -->
            <div class="Pre-2" onclick="window.parent.frames[0].location.href = '${ctx}/order/order/'"><spring:message code="order_cancel"/></div>
        </div>
    </div>
    <script>
        var windowH2 = window.parent.windowHIframe
        $('.TxtInfoSm1,.scrollBox').css('height', windowH2 - 368);

        var listH = $(':root').css('height')
        $(window.parent.$("#mainFrame").css('height', listH));
    </script>
</body>
</html>